<?php if ($this->loginAction) :?>
<script type="text/javascript">
	window.location.assign("<?php echo WEB_LINK;?>");
</script>
<?php endif;?>
<div class="centCont">
    <div class="boxCent">
        <div class="tt-boxCent">
            <p style="width:220px;">ĐĂNG NHẬP</p>
            <div class="che-tt-cent"></div>
        </div><!--tt-boxCent-->
        <div class="cc-boxCent">
            <div class="mainSP">
                <div align="center">
					<form id="registerForm" method="post" name="registerForm" action="<?php echo WEB_LINK . "/";?>account/login#content" onsubmit="return checkFormLogin()">
					<input type="hidden" value="<?php echo $this->getPost['urlNow'];?>" name="urlNow"/>			
						<table border="0" cellspacing="5" cellpadding="0" width="85%" id="table" align="center">
							<tr>
								<td height="20" colspan="3" align="center" class="err">
									<?php
									 if (count ($this->errorArr) > 0) {
										echo FunctionCommon::showAllErrorMessage($this->errorArr);
									 } elseif ($this->er) {
									 	echo "<span style='float:left;text-align:left;line-height:20px;'>";
									 	echo "1 - &nbsp;Nếu bạn đã có tài khoản trên MuaTheNhanh hãy đăng nhập.<br>";
        								echo "2 - &nbsp;Nếu bạn chưa có tài khoản trên MuaTheNhanh? Bấm <a href='".WEB_LINK."/account/dang-ky#content'>vào đây</a> để đăng ký.<br>";
        								echo "</span>";
									 }
									 ?>
								</td>
							</tr>
							<tr>
								<td height="20" colspan="3" class="normalfont">
							         <p align="right"><font color="#FF0000">* </font><font color="#3D3D3D">Thông tin phải nhập&nbsp;&nbsp;&nbsp; </font></p>
							    </td>
							</tr>
							<tr>
								<td align="right" class="normalfontbold" width="40%">Tên truy cập</td>
								<td class="Star" width="5"><font color="#FF0000">*</font></td>
								<td nowrap width="60%"><input type="text" id="nickname" size="36" name="nickname" value="<?php echo $this->getPost['nickname'];?>"></td>
							</tr>
							<tr>
								<td align="right" class="normalfontbold" width="40%">Mật mã</td>
								<td width="5"><font color="#FF0000">*</font></td>
								<td nowrap width="60%"><input id="password" size="36" name="password" type="password"></td>
							</tr>
							<?php if ($this->countLogin >= 3) :?>
							<tr>
								<td align="right" class="normalfontbold" width="40%">Nhập mã ở hình bên</td>
								<td width="5"><font color="#FF0000">*</font></td>
								<td nowrap width="60%" style="float:left;"><input style="float:left;" type="text" id="captcha" size="8" name="captcha" value="<?php echo $this->getPost['captcha'];?>"><img height="22" style="display:block;margin-left:78px;" src="<?php echo WEB_LINK . "/captcha.php";?>"></td>
							</tr>
							<?php endif;?>
							<tr>
								<td colspan="2">&nbsp;</td>
								<td width="60%">&nbsp;</td>
							</tr>
							<tr>
							    <td colspan="3" align="center">
							    	<a class="underError" href="<?php echo WEB_LINK . "/";?>account/dang-ky#content">Đăng ký</a>、
                                	<a class="underError" href="<?php echo WEB_LINK . "/";?>account/quen-mat-khau#content">Quên mật khẩu?</a>
							    </td>
							 </tr>
							<tr>
								<td colspan="2">&nbsp;</td>
								<td width="60%">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2">&nbsp;</td>
								<td width="60%">
									<input style="width:89px; height: 23px;" type="submit" value="Đăng nhập" id="btdangky" name="butSub">
							    </td>
							</tr>
							<tr>
								<td colspan="2">&nbsp;</td>
								<td width="60%">&nbsp;</td>
							</tr>
						</table>
					</form>							
				</div>
			</div><!--mainSP-->
		</div><!--cc-boxCent-->
    </div><!--boxCent-->
</div><!--centCont-->